﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace IfSoft.OA.Entities
{
    public class BankBill
    {
        public int Id { get; set; }

        public string PayCompany { get; set; }
        public string PayDepartment { get; set; }
        public DateTime? PayDate { get; set; }              
        public string PayType { get; set; }
        public string PayBank { get; set; }  
        public string PayNoteType { get; set; }
        public string PayNoteNo { get; set; }

        public string ReceiveCompany { get; set; }
        public string ReceiveBank { get; set; }
        public string ReceiveAccountNo { get; set; }

        public string Currency { get; set; }
        public decimal? Amount { get; set; }
        public string AmountInCN { get; set; }
        public DateTime? Deadline { get; set; }
        public string Description { get; set; }

        public string Step1 { get; set; }
        public DateTime? Step1Date { get; set; }
        public string Step2 { get; set; }
        public DateTime? Step2Date { get; set; }
        public string Step3{ get; set; }
        public DateTime? Step3Date { get; set; }
        public string Step4 { get; set; }
        public DateTime? Step4Date { get; set; }
        public string Step5 { get; set; }
        public DateTime? Step5Date { get; set; }

        public DateTime CreatedTime { get; set; }
        public string Creator { get; set; }

        public virtual ICollection<BankBillDetail> BankBillDetails { get; set; }
        public virtual ICollection<Attatchment> Attatchments { get; set; }

        public BankBill()
        {
            BankBillDetails = new List<BankBillDetail>(); 
        }
    }
}
